package com.iplant.mes.service.po.exc;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.iplant.ams.service.basicenum.exc.EXCUnusualTypes;
import com.iplant.base.utils.general.CalendarTool;

import java.util.Calendar;


public class EXCStatRate {

    /**
     * 异常类型
     */
    public int UnusualType = 0;

    public String UnusualTypeText = "";

    public int DeviceID = 0;
    public int AssetInfoID = 0;
    public String DeviceName = "";

    public String DeviceCode = "";

    public int StationID = 0;

    public String StationName = "";

    public String StationCode = "";

    /**
     * 发生次数
     */
    public int Times = 0;

    /**
     * 发生次数
     */
    public int RejectTimes = 0;


    /**
     * 发生次数
     */
    public int CurrentTimes = 0;

    public Calendar StatDate = CalendarTool.getDate();

    @JsonProperty("UnusualType")
    public int getUnusualType() {
        return UnusualType;
    }

    public void setUnusualType(int unusualType) {
        UnusualType = unusualType;
    }

    @JsonProperty("UnusualTypeText")
    public String getUnusualTypeText() {
        UnusualTypeText= EXCUnusualTypes.getEnumType(UnusualType).getLabel();
        return UnusualTypeText;
    }

    public void setUnusualTypeText(String unusualTypeText) {
        UnusualTypeText = unusualTypeText;
    }

    @JsonProperty("DeviceID")
    public int getDeviceID() {
        return DeviceID;
    }

    public void setDeviceID(int deviceID) {
        DeviceID = deviceID;
    }

    @JsonProperty("AssetInfoID")
    public int getAssetInfoID() {
        return AssetInfoID;
    }

    public void setAssetInfoID(int assetInfoID) {
        AssetInfoID = assetInfoID;
    }

    @JsonProperty("DeviceName")
    public String getDeviceName() {
        return DeviceName;
    }

    public void setDeviceName(String deviceName) {
        DeviceName = deviceName;
    }

    @JsonProperty("DeviceCode")
    public String getDeviceCode() {
        return DeviceCode;
    }

    public void setDeviceCode(String deviceCode) {
        DeviceCode = deviceCode;
    }

    @JsonProperty("StationID")
    public int getStationID() {
        return StationID;
    }

    public void setStationID(int stationID) {
        StationID = stationID;
    }

    @JsonProperty("StationName")
    public String getStationName() {
        return StationName;
    }

    public void setStationName(String stationName) {
        StationName = stationName;
    }

    @JsonProperty("StationCode")
    public String getStationCode() {
        return StationCode;
    }

    public void setStationCode(String stationCode) {
        StationCode = stationCode;
    }

    @JsonProperty("Times")
    public int getTimes() {
        return Times;
    }

    public void setTimes(int times) {
        Times = times;
    }

    @JsonProperty("StatDate")
    public Calendar getStatDate() {
        return StatDate;
    }

    public void setStatDate(Calendar statDate) {
        StatDate = statDate;
    }
}
